const state = {
  tableData: [],
}

const getters = {
  getTableData (state) { // 获取到table的数据
    return state.tableData
  }
}

const mutations = {
  setTableData (state, payload) { // 更改table的数据
    state.tableData = payload
  }
}

const actions = {

}

export default{
  namespaced: true,// 开启模块的命名空间
  state,
  getters,
  mutations,
  actions
}